package org.kjtc;

import org.apache.commons.collections.map.HashedMap;
import org.junit.runner.RunWith;
import org.kjtc.mapper.WxChargingstationMapper;
import org.kjtc.redis.RedisUtil;
import org.kjtc.weChatUtil.CommonUtil;
import org.kjtc.weChatUtil.JsonUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.Map;


/**
 * Created by Administrator on 2019/3/7 0007.
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public class AllMassageDatabase {
    @Autowired
    private RedisUtil redisUtil;

    @Autowired
    private WxChargingstationMapper wxChargingstationMapper;
    @org.junit.Test
    public void creatMuneStart(){
        Map<String,Object> map = new HashedMap();
        map.put("massage","success");
        map.put("ChargingStation",wxChargingstationMapper.selectList(""));

        System.out.println(JsonUtils.objectToJson(map));
        }
}
